package com.attilax.cmd;

import com.attilax.io.pathx;
import com.attilax.secury.AesV2q421;
import com.attilax.util.PropX;

/**
 * com.attilax.cmd.Pc.main //rundll32.exe powrprof.dll,SetSuspendState Sleep
 * //l5n02T0fxfE77UADENPHv5ZH04SwH/0hWenSotF3FI6OIKUzNJBENkxlCkuLoMtT
 * //------------------------------------- //
 * l5n02T0fxfE77UADENPHv6/nVuQanvEu+c3WX438/tnF/ZsTWqrw71JSNgZsJJJP //
 * rundll32.exe powrProf.dll,SetSuspendState
 * 
 * @author Administrator
 *
 */
public class Pc {

	public static void main(String[] args) throws InterruptedException {
		String path = pathx.classPathParent_jensyegeor() + "/pc.txt";
		PropX px = new PropX(path);
		String cmd = "  " + AesV2q421.decrypt(px.getProperty("code"), "123");
		int sec=Integer.parseInt( px.getProperty("sec"));
		System.out.println("waint...");
		// System.out.println(cmd);
		while (true) {
			Thread.sleep(sec * 1000  );
			String r = CmdX.exe(cmd);
			System.out.println(r);
		}
	}

}
